<script src="<?=PATH_URL.'static/js/date/jquery.ui.core.js'?>"></script>
<script src="<?=PATH_URL.'static/js/date/jquery.ui.datepicker.js'?>"></script>

<?php
	include_once('function/func.php');
	$cart=$this->session->userdata('Cart');
	$user=$this->session->userdata('ProfileInfo');
	$brithTmp=explode('-',$user['brithday']);
	$brith=$brithTmp[2].'/'.$brithTmp[1].'/'.$brithTmp[0];
?>

<form id="fRegister" action="" method="post" enctype="multipart/form-data" >
<div class="w90" style="border: none">
    <h4 style="left: 20px;">Thông tin giao hàng</h4>
    <input type="hidden" id="idProfile" value="<?php if($user):?><?=$user['id']?><?php endif;?>"/>
    
    <div class="register">
        <div class="one_register 270">
            <label>Họ và tên: <span>*</span></label>
            <input class="required" type="text" value="<?=$user['name'];?>" name="name" id="name" />
            <span class="error name"></span>
        </div>
<!--        <div class="one_register full">
            <label>Ngày sinh:</label>
            <input type="text" value="<?php if($user):?><?=$brith;?><?php endif;?>" name="brithday" id="datepicker" />
        </div>-->
        <div class="one_register full">
            <label>Số điện thoại: <span>*</span></label>
            <input type="text" value="<?=$user['phone'];?>" name="phone" id="phone" />
            <span class="error phone"></span>
        </div>
        <div class="one_register 270">
            <label>Địa chỉ giao hàng: <span>*</span></label>
            <textarea name="address" id="address"><?=$user['address'];?></textarea>
            <span class="error address"></span>
        </div>
        <div class="one_register full">
            <label>Ghi chú: </label>
            <textarea name="note" id="note"></textarea>
        </div>
    </div>
</div>

<dir style="margin: 30px 20px 0 0;" onclick="<?php if($user){?>check_continue(); return false;<?php }else{?>register(); return false;<?php } ?>" class="regis_bt button">Tiếp tục</dir>

</form>

